﻿<Window x:Class="HM.UI.Windows.ExpensesReportWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Expenses Report" SizeToContent="WidthAndHeight">
    <Grid>
        <DataGrid Grid.Row="1" Grid.Column="1" Margin="5" AutoGenerateColumns="False" ItemsSource="{Binding Expenses}" IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding PaymentDate, StringFormat={}{0:d MMMM yyyy}}" Header="Date" />
                <DataGridTextColumn Binding="{Binding Amount}" Header="Amount" />
                <DataGridTextColumn Binding="{Binding Description}" Header="Description" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
